export default {
    state: {
        userinfo: {
            userId: '',
            userToken: null
        },
        testVal: '测试值'
    },
    mutations: {
        addUserInfo(state, val) {
            state.userinfo = val
        },
        clearUserInf(state) {
            state.userinfo = {
                userId: '',
                userToken: null
            }
            localStorage.removeItem('MODEL_ID')
            window.sessionStorage.clear();
        }
    }
}